<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://xmlns.jcp.org/jsf/passthrough"
      xmlns:myta="http://java.sun.com/jsf/composite/myta">

	<ui:composition template="/templates/form.xhtml">
			<ui:define name="title">SIA Online</ui:define>
			<ui:define name="header">Data Kelas</ui:define>
			<ui:define name="body">
				<h:form id="kelas" onkeypress="if(event.keyCode==13)return false;">
					<div class="panel panel-primary">
						<div class="panel-heading">Detail Kelas</div>
						<div class="panel-body">
							<div class="form-horizontal">
								<myta:inputText id="id" label="ID kelas" inputBinding="#{kelasData.txtid}"/>
								<myta:inputText id="nama" label="Nama kelas" inputBinding="#{kelasData.txtnama}"/>
								<myta:comboBox id="jurusan" label="Jurusan" comboboxBinding="#{kelasData.txtidjurusan}" comboboxValue="#{kelasData.listJurusan}"/>
								<myta:comboBox id="semester" label="Semester" comboboxBinding="#{kelasData.txtidsemester}" comboboxValue="#{kelasData.listSemester}"/>
							</div>
						</div>
					</div>
					
					<div class="pull-right">
						<h:commandButton value="Simpan" action="#{kelasData.save}" styleClass="btn btn-success">
						</h:commandButton>&nbsp;
						<h:commandButton value="Batal" action="#{kelasData.cancel}" styleClass="btn btn-info">
						</h:commandButton>
					</div>
				</h:form>
			</ui:define>
	</ui:composition>
</html>